* {
	margin: 0;
	padding: 0;
	font-family: "微软雅黑";
	list-style: none;
}

html,
body {
	height: 100%;
	overflow: hidden;
}


/*头部开始*/

#header {
	width: 100%;
	height: 100px;
	border-bottom: solid 3px #eee;
	background-image: url(img/bodyBg.jpg);
	color: white;
}

#header h1 {
	text-align: center;
	padding-top: 15px;
}

#header h3 {
	text-align: center;
}


/*头部结束*/


/*中间开始*/

#main {
	width: 100%;
	height: calc(100% - 206px);
}

#main ul.left {
	width: 170px;
	height: 100%;
	overflow-y: scroll;
	float: left;
}

#main ul.left li {
	border-bottom: solid 1px #ccc;
	height: 28px;
	line-height: 28px;
	text-align: left;
	padding-left: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 10px -362px;
	cursor: pointer;
}

#main div.right {
	width: calc(80% - 170px);
	height: 100%;
	float: left;
}

#main div.rights {
	width: calc(100% - 80%);
	height: 100%;
	float: left;
}

#main .right .recordlist {
	width: 100%;
	height: calc(100% - 135px);
	padding-top: 10px;
	overflow-y: scroll;
}

.recordlist li {
	height: 30px;
	line-height: 30px;
}

.recordlist li.left {
	width: 50%;
	padding-left: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 10px -362px;
}

.recordlist li span.spancontents {
	background-color: brown;
	padding: 3px 10px;
	margin: 0 5px;
	color: white;
	border-radius: 6px;
	font-size: 14px;
}

.recordlist li span.spannickname {
	font-size: 14px;
}

.recordlist li.right {
	margin-left: calc(50% - 30px);
	text-align: right;
	padding-right: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	;
	background-position: calc(100% - 10px) -362px;
}

#main .right .toolbar {
	width: 100%;
	height: 25px;
	background-color: #C0C0C0;
}

.toolbar li {
	width: 25px;
	height: 25px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	float: left;
	cursor: pointer;
}

.toolbar li.a {
	background-position: 8px -242px;
}

.toolbar li.b {
	background-position: 8px -391px;
}

.toolbar li.c {
	background-position: 8px -147px;
}

.toolbar li.d {
	background-position: 8px -539px;
}

.toolbar li.clear {
	width: 60px;
	line-height: 25px;
	text-align: center;
	float: right;
	background-image: none;
	font-size: 12px;
}

.toolbar li.createroom {
	width: 60px;
	line-height: 25px;
	text-align: center;
	float: right;
	background-image: none;
	font-size: 12px;
}

#main .right .sendmsgcontainer {
	width: 100%;
	height: 100px;
}

#tbcontents {
	width: calc(100% - 6px);
	height: 60px;
	outline: none;
	resize: none;
	border: 0;
	line-height: 20px;
	padding: 3px;
}

.sendmsgcontainer p {
	text-align: right;
}

.sendmsgcontainer p input {
	padding: 0px 15px;
	margin-right: 5px;
	border: solid 1px #ccc;
	border-radius: 2px;
	line-height: 22px;
}


/*中间结束*/


/*底部开始*/

#footer {
	width: 100%;
	height: 100px;
	border-top: solid 3px #eee;
	background-image: url(img/bodyBg.jpg);
}

#footer p {
	font-size: 12px;
	color: white;
	padding-left: 10px;
	padding-top: 10px;
}

.chatwindow {
	width: 550px;
	height: 400px;
	border: solid 1px #ccc;
	border-radius: 3px;
	position: absolute;
	left: 200px;
	top: 100px;
	background-color: white;
	z-index: 1000;
	display: none;
}

.chatwindow p.title {
	height: 25px;
	background-color: #C0C0C0;
	font-size: 12px;
	line-height: 25px;
	cursor: move;
}

.chatwindow p.title span.firstspan {
	margin-left: 5px;
}

.chatwindow p.title span.btntopclose {
	float: right;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 8px 8px;
	width: 25px;
	height: 25px;
	cursor: pointer;
}

.chatwindow .smallrecordlists {
	height: 230px;
	overflow-y: scroll;
}

.chatwindow .smallrecordlists li {
	width: 100%;
	margin-top: 2px;
}

.chatwindow .smallrecordlists li.left span.spannickname {
	display: inline-block;
	padding-left: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 10px -362px;
}

.chatwindow .smallrecordlists li.left span.spancontents {
	width: calc(100% - 120px);
	display: inline-block;
	margin-left: 10px;
	border-radius: 3px;
	background-color: #A52A2A;
	font-size: 14px;
	line-height: 20px;
	color: white;
	padding: 5px;
}

.chatwindow .smallrecordlists li.right span.spannickname {
	display: inline-block;
	padding-right: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	;
	background-position: calc(100% - 10px) -362px;
}

.chatwindow .smallrecordlists li.right span.spancontents {
	width: calc(100% - 120px);
	display: inline-block;
	margin-left: 10px;
	border-radius: 3px;
	background-color: #A52A2A;
	font-size: 14px;
	line-height: 20px;
	color: white;
	padding: 5px;
}

.chatwindow ul.toolbar {
	background-color: #C0C0C0;
	height: 25px;
}

.chatwindow .tbcontents {
	width: calc(100% - 10px);
	height: 75px;
	border: 0;
	outline: none;
	resize: none;
	padding: 5px;
	line-height: 20px;
}


/*底部结束*/

.mask {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	z-index: 1001;
}

.login {
	width: 400px;
	height: 76px;
	border: solid 1px #ccc;
	position: absolute;
	left: calc(50% - 200px);
	top: calc(50% - 38px);
	z-index: 1002;
	border-radius: 5px;
	background-color: #EEEEEE;
}

.login p {
	padding-left: 20px;
	padding-top: 13px;
	text-align: center;
	position: relative;
}

.login p.sex {
	font-size: 12px;
	text-align: left;
	padding-left: 69px;
}

#btnlogin {
	margin-left: 5px;
}

#loginmsg {
	color: red;
	margin-right: 5px;
	position: absolute;
	left: 5px;
	top: 15px;
	font-size: 12px;
}

/**/
.chatroom {
	width: 550px;
	height: 400px;
	border: solid 1px #ccc;
	border-radius: 3px;
	position: absolute;
	left: 200px;
	top: 100px;
	background-color: white;
	z-index: 1000;
	display: none;
	padding-left: 0px;
}

.chatroom p.titles {
	height: 25px;
	background-color: #C0C0C0;
	font-size: 12px;
	line-height: 25px;
	cursor: move;
}

.chatroom p.titles span.firstspans {
	margin-left: 5px;
}

.chatroom p.titles span.btntopcloses {
	float: right;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 8px 8px;
	width: 25px;
	height: 25px;
	cursor: pointer;
}

.chatroom .smallrecordlistss {
	height: 230px;
	overflow-y: scroll;
}

.chatroom .smallrecordlistss li {
	width: 100%;
	margin-top: 2px;
}

.chatroom .smallrecordlistss li.lefts span.spannickname{
	display: inline-block;
	padding-left: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	background-position: 10px -362px;
}

.chatroom .smallrecordlistss li.lefts span.spancontents {
	width: calc(100% - 120px);
	display: inline-block;
	margin-left: 10px;
	border-radius: 3px;
	background-color: #A52A2A;
	font-size: 14px;
	line-height: 20px;
	color: white;
	padding: 5px;
}

.chatroom .smallrecordlistss li.rights span.spannickname {
	display: inline-block;
	padding-right: 30px;
	background-image: url(img/icon.png);
	background-repeat: no-repeat;
	;
	background-position: calc(100% - 10px) -362px;
}

.chatroom .smallrecordlistss li.rights span.spancontents {
	width: calc(100% - 120px);
	display: inline-block;
	margin-left: 10px;
	border-radius: 3px;
	background-color: #A52A2A;
	font-size: 14px;
	line-height: 20px;
	color: white;
	padding: 5px;
}

.chatroom ul.toolbars {
	background-color: #C0C0C0;
	height: 25px;
}

.chatroom .tbcontentss {
	width: calc(100% - 10px);
	height: 75px;
	border: 0;
	outline: none;
	resize: none;
	padding: 5px;
	line-height: 20px;
}